﻿@model ThaireInvestmentWeb.Models.AddFixedIncomePurchaseModel

@{
    Layout = null;
}

    <table class="tableform" width="100%" border="0" align="center" cellspacing="2">
                    <tr>
                        <td width="212">
                            <div align="right">Company Name: </div>
                        </td>
                        <td width="8">&nbsp;</td>
                        <td width="246">
                            @Html.TextBoxFor(model => model.Header.CompanyName, new { disabled = "disabled", @readonly = "readonly" })
                        </td>
                        <td width="188" align="right">
                            <div align="right">Maturity Status:</div>
                        </td>
                        <td width="6">&nbsp;</td>
                        <td width="208">@Html.DisplayFor(model => model.Header.MaturityStatus)</td>
                    </tr>
                    <tr>
                      
                            <td>
                            <div align="right">Full Name(TH): </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.Header.FixedIncomeFullnameTH, new { disabled = "disabled", @readonly = "readonly" })</td>
                          <td>
                            <div align="right">Full Name(EN): </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.Header.FixedIncomeFullnameEN, new { disabled = "disabled", @readonly = "readonly" })</td>
                    </tr>
                    <tr>
                        <td>
                            <div align="right">Issuer  : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.Header.IssuerName, new { disabled = "disabled", @readonly = "readonly" })</td>
                        <td>
                            <div align="right">Issuer Type : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.Header.IssuerTypeName, new { disabled = "disabled", @readonly = "readonly" })</td>
                    </tr>
                    <tr>
                        <td>
                            <div align="right">Symbol  : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.Header.Symbol, new { disabled = "disabled", @readonly = "readonly" })</td>
                        <td>
                            <div align="right">Guarantor : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.Header.GuarantorName, new { disabled = "disabled", @readonly = "readonly" })</td>
                    </tr>
                    <tr>
                        <td>
                            <div align="right">ISIN Code    : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.Header.IsinCode, new { disabled = "disabled", @readonly = "readonly" })</td>
                        <td>
                            <div align="right">Bond Type : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.Header.BondTypeName, new { disabled = "disabled", @readonly = "readonly" })</td>
                    </tr>
                    <tr>
                        <td style="text-align: right">Listed Status :</td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.Header.ListedStatus, new { disabled = "disabled", @readonly = "readonly" })</td>
                        <td style="text-align: right">ครั้งที่ออก : </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.Header.NumberTime, new { disabled = "disabled", @readonly = "readonly" })</td>
                    </tr>

              <tr>
                        <td style="text-align: right">Initial Par / Unit :</td>
                        <td>&nbsp;</td>
                        <td>

                            @Html.TextBoxFor(model => model.Header.InitialParUnit, new {disabled = "disabled", @readonly = "readonly" , @class = "inputNumberField" , @Value = ThaireInvestmentWeb.Util.WebUtil.FormatCurrency0(@Model.Header.InitialParUnit)  })
                        </td>
                           <td style="text-align: right">Current Par / Unit :</td>
                        <td>&nbsp;</td>
                        <td style="width: 236px">
                            @Html.TextBoxFor(model => model.Header.CurrentParUnit, new {disabled = "disabled", @readonly = "readonly", @class = "inputNumberField"  , @Value = ThaireInvestmentWeb.Util.WebUtil.FormatCurrency0(@Model.Header.CurrentParUnit) })
                        </td>
                    </tr>

                    <tr>
                        <td>
                            <div align="right">Issue Date  : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.HeaderIssueDate, new { disabled = "disabled", @readonly = "readonly" , @Value = string.Format("{0:dd/MM/yyyy}", Model.HeaderIssueDate)})
                            &nbsp;</td>
                        <td>
                            <div align="right">Maturity Date : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.HeaderMaturityDate, new { disabled = "disabled", @readonly = "readonly", @Value = string.Format("{0:dd/MM/yyyy}", Model.HeaderMaturityDate) })
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            <div align="right">Issue Term   : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.Header.IssuerTerm, new { disabled = "disabled", @readonly = "readonly" ,@value = ThaireInvestmentWeb.Util.WebUtil.NonApplicableIfZero(Model.Header.IssuerTerm) })
                            &nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            <div align="right">Issue Rating :</div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.RtHistory.IssueRating, new { disabled = "disabled", @readonly = "readonly" })
                            &nbsp;</td>
                        <td>
                            <div align="right">Credit Agency (Issue): </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.HeaderDto.CreditAgencyIssueName, new { disabled = "disabled", @readonly = "readonly" })
                            </td>
                    </tr>
                    <tr>
                        <td style="text-align: right">Issue Rating Update Date : </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.RtHistoryIssueUpdateDate, new { disabled = "disabled", @readonly = "readonly", @Value = string.Format("{0:dd/MM/yyyy}", Model.RtHistoryIssueUpdateDate)  })
                        </td>
                        <td>
                            <div align="right">Credit Agency (Issue): </div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="color: #999999">
                            @Html.TextBoxFor(model => model.RtHistory.IssueCreditAgencyCountry, new { disabled = "disabled", @readonly = "readonly" })
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div align="right">Issuer Rating   : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.RtHistory.IssuerRating, new { disabled = "disabled", @readonly = "readonly" })
                            &nbsp;</td>
                        <td>
                            <div align="right">Credit Agency (Issuer) :&nbsp; </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model =>  model.HeaderDto.CreditAgencyIssueName, new { disabled = "disabled", @readonly = "readonly" })
                            </td>
                    </tr>
                    <tr>
                        <td style="text-align: right">Issuer Rating Update Date : </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.RtHistoryIssuerUpdateDate, new { disabled = "disabled", @readonly = "readonly", @Value = string.Format("{0:dd/MM/yyyy}", Model.RtHistoryIssuerUpdateDate) })

                        </td>
                        <td>
                            <div align="right">Credit Agency (Issuer) :&nbsp; </div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="color: #999999">
                            @Html.TextBoxFor(model => model.RtHistory.IssuerCreditAgencyCountry, new { disabled = "disabled", @readonly = "readonly" })
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div align="right">Guarantor Rating   : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.RtHistory.GuarantorRating, new { disabled = "disabled", @readonly = "readonly" })
                            &nbsp;</td>
                        <td>
                            <div align="right">Credit Agency (Guarantor) :&nbsp; </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model =>  model.HeaderDto.CreditAgencyGuarantorName, new { disabled = "disabled", @readonly = "readonly" })
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right">Guarantor Rating Update Date : </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.RtHistoryGuarantorUpdateDate, new { disabled = "disabled", @readonly = "readonly", @Value = string.Format("{0:dd/MM/yyyy}", Model.RtHistoryGuarantorUpdateDate) })
                        </td>
                        <td>
                            <div align="right">Credit Agency (Guarantor) :&nbsp; </div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="color: #999999">
                            @Html.TextBoxFor(model => model.RtHistory.GuarantorCreditAgencyCountry, new { disabled = "disabled", @readonly = "readonly" })
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div align="right">Risk Level  : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.Header.RiskLevel, new { disabled = "disabled", @readonly = "readonly" })
                        </td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            <div align="right"></div>
                        </td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                </table>
